import Request from "./Request";
import Response from "./Response";

export default class RequestContext {
	_data: { [key: string]: any } = {};

	request: Request;
	response: Response;
	constructor(request: Request, response: Response) {
		this.request = request;
		this.response = response;
	}
	setData(key: string, value: any) {
		this._data[key] = value;
	}
	getData(key: string) {
		return this._data[key];
	}
}
